package creational.abstractfactory;
//Client class
public class AnimalWorld {
	private Herbivore _herbivore;
    private Carnivore _carnivore;
    public AnimalWorld(ContinentFactory factory) {
      _carnivore = factory.createCarnivore();
      _herbivore = factory.createHerbivore();
    }
    public void RunFoodChain() {
      _carnivore.eat(_herbivore);
    }
}
